<template>
  <div id="overlay" @click="close"></div>
</template>

<script>
export default {
  name: "Overlay",
  methods: {
    close() {
      this.$store.commit("setShowSetting", false);
    },
  },
};
</script>

<style lang="less" scoped>
#overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
}
</style>